//
//  UIButton+LFButton.h
//  XiangMuXieTong
//
//  Created by lifushuai on 16/5/5.
//  Copyright © 2016年 jiankeyan. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (LFButton)
/**
 *  设置button的背景颜色和状态的颜色
 */
- (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state;
/** button 的背景图片 */
+ (UIButton *)buttonWithBackgroundImageName:(NSString *)imageName;
/** button 的图片 和 点击后的图片 */
+ (UIButton *)buttonWithImageName:(NSString *)imageName highlightedImageName:(NSString *)selectedImageName titleFont:(UIFont *)font;
/** button 的背景图片 和 选中后的背景图片 */
+ (UIButton *)buttonWithBackgroundImageName:(NSString *)imageName selectedImageName:(NSString *)selectedImageName;
/** button 的背景图片 和 点击后的背景图片 */
+ (UIButton *)buttonWithBackgroundImageName:(NSString *)imageName highlightedImageName:(NSString *)selectedImageName;
/** button 设置文字大小 默认文字黑色 默认居中*/
+ (UIButton *)buttonWithTitle:(NSString *)title setTitleFont:(UIFont *)font;
/** button 设置文字大小颜色 默认居中*/
+ (UIButton *)buttonWithTitle:(NSString *)title setTitleColor:(UIColor *)color setTitleFont:(UIFont *)font setState:(UIControlState)state;
/** 可以设置button的文字大小颜色排列方向 */
+ (UIButton *)buttonWithTitle:(NSString *)title setTitleColor:(UIColor *)color setTitleFont:(UIFont *)font setTextAlignment:(UIControlContentHorizontalAlignment)alignment;
/** 可以设置button的文字大小颜色排列方向 背景图片 和 选中后的背景图片*/
+ (UIButton *)buttonWithTitle:(NSString *)title setTitleColor:(UIColor *)color setTitleFont:(UIFont *)font setTextAlignment:(UIControlContentHorizontalAlignment)alignment setBackgroundImageName:(NSString *)imageName highlightedImageName:(NSString *)selectedImageName;
/** 可以设置button的文字大小颜色排列方向 图片 和 选中后的图片*/
+ (UIButton *)buttonWithTitle:(NSString *)title setTitleFont:(UIFont *)font setNormalImageName:(NSString *)imageName andSelectImageName:(NSString *)selectImageName;
@end
